<template>
	<view class="page solid-top">
		<view class="padding text-df text-666">
			<view class="word-wrap"> 为了向您提供更好的用户体验 </view>
			<view class="margin-top-xs word-wrap"> APP会在特定场景下向您申请一下手机系统权限 </view>
		</view>
		<view class=" margin-lr margin-bottom  bg-white radius-16 padding flex align-center justify-between"
			@tap='openAuthen'>
			<view class="flex align-center">
				<!-- <image src="/static/my/a1.png" mode="aspectFill" class="fu-block-86 margin-right-sm"></image> -->
				<view class="">
					<view class="text-bold text-333">位置信息</view>
					<view class="text-sm text-999 word-wrap">根据您的位置为您推荐周边的服务</view>
				</view>
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class=" margin-lr margin-bottom  bg-white radius-16 padding flex align-center justify-between"
			@tap='openAuthen'>
			<view class="flex align-center">
				<!-- <image src="/static/my/a2.png" mode="aspectFill" class="fu-block-86 margin-right-sm"></image> -->
				<view class="">
					<view class="text-bold text-333">相机权限</view>
					<view class="text-sm text-999">实现拍照、录视频</view>
				</view>
			</view>
			<text class="cuIcon-right"></text>
		</view>
		<view class=" margin-lr  bg-white radius-16 padding flex align-center justify-between" @tap='openAuthen'>
			<view class="flex align-center">
				<!-- <image src="/static/my/a3.png" mode="aspectFill" class="fu-block-86 margin-right-sm"></image> -->
				<view class="">
					<view class="text-bold text-333">存储权限</view>
					<view class="text-sm text-999">用于图片和视频的上传</view>
				</view>
			</view>
			<text class="cuIcon-right"></text>
		</view>

		<!-- 网络监测 start -->
		<fu-notwork></fu-notwork>
		<!-- 网络监测 end -->
	</view>
</template>

<script>
	import permission from '@/js_sdk/wa-permission/permission.js'
	export default {
		data() {
			return {
				body: ' ', //协议内容
				is_open: false, // 是否开启企业订单审核
				addRadioColor: '#FD230D',
				addRadioDefaultColor: '#bfbfbf'
			};
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title: global.i18n['权限设置']
			})
		},

		methods: {

			/* @func 切换是否为开启
			 */
			openAuthen() {
				permission.gotoAppPermissionSetting()

			},


		}
	}
</script>

<style lang="scss" scoped>
	// 页面内容 start
	.page {
		background: #f8f8f8;
		overflow: hidden;
		height: 100vh;
		overflow-y: scroll;
		line-height: 48rpx;
		font-size: 32rpx;
	}

	/deep/ .switch {
		transform: scale(0.7);
	}

	// 页面内容 end
</style>